// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_FIN_BILLING_RECEIVED_APPLICATION
// * CreateDate    : 2012/4/10 10:31:08
// * Creater       : CodeSmith
// * LastChangeDate: 2012/4/10 10:31:08
// * LastChanger   : 2012/4/10 10:31:08
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class FinBillingReceivedApplicationEntity : EntityBase
    {
        public FinBillingReceivedApplicationTable TableSchema
        {
            get
            {
                return FinBillingReceivedApplicationTable.Current;
            }
		}
		
		public FinBillingReceivedApplicationEntity()
        {

        }
		
		public FinBillingReceivedApplicationEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_ID"]));
			this.ApplicationPerson = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_PERSON"]));
			this.ApplicationDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPLICATION_DATE"]));
			this.CustomerId = Convert.ToString(CommonFunctions.ToObject(dr["CUSTOMER_ID"]));
			this.BillingAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["BILLING_AMOUNT"]));
			this.Currency = Convert.ToString(CommonFunctions.ToObject(dr["CURRENCY"]));
			this.ReceivedAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["RECEIVED_AMOUNT"]));
			this.ReceivedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["RECEIVED_DATE"]));
			this.ReceivedAmountPerson = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_AMOUNT_PERSON"]));
			this.InvoiceNo = Convert.ToString(CommonFunctions.ToObject(dr["INVOICE_NO"]));
			this.InvoiceSendingType = Convert.ToString(CommonFunctions.ToObject(dr["INVOICE_SENDING_TYPE"]));
			this.InvoiceSendingPostNo = Convert.ToString(CommonFunctions.ToObject(dr["INVOICE_SENDING_POST_NO"]));
			this.InvoiceSendingPerson = Convert.ToString(CommonFunctions.ToObject(dr["INVOICE_SENDING_PERSON"]));
			this.InvoiceReceivedPerson = Convert.ToString(CommonFunctions.ToObject(dr["INVOICE_RECEIVED_PERSON"]));
			this.FeedbackRemark = Convert.ToString(CommonFunctions.ToObject(dr["FEEDBACK_REMARK"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
			this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
			this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
			this.ApprovedBy = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_BY"]));
			this.ApplicationCode = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_CODE"]));
			this.ApprovedRemark = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_REMARK"]));
			this.OrderType = Convert.ToString(CommonFunctions.ToObject(dr["ORDER_TYPE"]));
			this.BillingType = Convert.ToString(CommonFunctions.ToObject(dr["BILLING_TYPE"]));
			this.BillingDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["BILLING_DATE"]));
			this.BillingCompany = Convert.ToString(CommonFunctions.ToObject(dr["BILLING_COMPANY"]));
			this.PayType = Convert.ToString(CommonFunctions.ToObject(dr["PAY_TYPE"]));
			this.AppAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["APP_AMOUNT"]));
			this.ApprovedAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["APPROVED_AMOUNT"]));
        }
		
		public FinBillingReceivedApplicationEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_ID"]));
			this.ApplicationPerson = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_PERSON"]));
			this.ApplicationDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPLICATION_DATE"]));
			this.CustomerId = Convert.ToString(CommonFunctions.ToObject(dr["CUSTOMER_ID"]));
			this.BillingAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["BILLING_AMOUNT"]));
			this.Currency = Convert.ToString(CommonFunctions.ToObject(dr["CURRENCY"]));
			this.ReceivedAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["RECEIVED_AMOUNT"]));
			this.ReceivedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["RECEIVED_DATE"]));
			this.ReceivedAmountPerson = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_AMOUNT_PERSON"]));
			this.InvoiceNo = Convert.ToString(CommonFunctions.ToObject(dr["INVOICE_NO"]));
			this.InvoiceSendingType = Convert.ToString(CommonFunctions.ToObject(dr["INVOICE_SENDING_TYPE"]));
			this.InvoiceSendingPostNo = Convert.ToString(CommonFunctions.ToObject(dr["INVOICE_SENDING_POST_NO"]));
			this.InvoiceSendingPerson = Convert.ToString(CommonFunctions.ToObject(dr["INVOICE_SENDING_PERSON"]));
			this.InvoiceReceivedPerson = Convert.ToString(CommonFunctions.ToObject(dr["INVOICE_RECEIVED_PERSON"]));
			this.FeedbackRemark = Convert.ToString(CommonFunctions.ToObject(dr["FEEDBACK_REMARK"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
			this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
			this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
			this.ApprovedBy = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_BY"]));
			this.ApplicationCode = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_CODE"]));
			this.ApprovedRemark = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_REMARK"]));
			this.OrderType = Convert.ToString(CommonFunctions.ToObject(dr["ORDER_TYPE"]));
			this.BillingType = Convert.ToString(CommonFunctions.ToObject(dr["BILLING_TYPE"]));
			this.BillingDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["BILLING_DATE"]));
			this.BillingCompany = Convert.ToString(CommonFunctions.ToObject(dr["BILLING_COMPANY"]));
			this.PayType = Convert.ToString(CommonFunctions.ToObject(dr["PAY_TYPE"]));
			this.AppAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["APP_AMOUNT"]));
			this.ApprovedAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["APPROVED_AMOUNT"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return FinBillingReceivedApplicationTable.Current;
            }
        }
		
		#region Perporty List
        public string ApplicationId
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_APPLICATION_ID)); }
            set { SetData(FinBillingReceivedApplicationTable.C_APPLICATION_ID, value); }
        }
		
        public string ApplicationPerson
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_APPLICATION_PERSON)); }
            set { SetData(FinBillingReceivedApplicationTable.C_APPLICATION_PERSON, value); }
        }
		
        public DateTime ApplicationDate
        {
            get { return Convert.ToDateTime(GetData(FinBillingReceivedApplicationTable.C_APPLICATION_DATE)); }
            set { SetData(FinBillingReceivedApplicationTable.C_APPLICATION_DATE, value); }
        }
		
        public string CustomerId
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_CUSTOMER_ID)); }
            set { SetData(FinBillingReceivedApplicationTable.C_CUSTOMER_ID, value); }
        }
		
        public decimal BillingAmount
        {
            get { return Convert.ToDecimal(GetData(FinBillingReceivedApplicationTable.C_BILLING_AMOUNT)); }
            set { SetData(FinBillingReceivedApplicationTable.C_BILLING_AMOUNT, value); }
        }
		
        public string Currency
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_CURRENCY)); }
            set { SetData(FinBillingReceivedApplicationTable.C_CURRENCY, value); }
        }
		
        public decimal ReceivedAmount
        {
            get { return Convert.ToDecimal(GetData(FinBillingReceivedApplicationTable.C_RECEIVED_AMOUNT)); }
            set { SetData(FinBillingReceivedApplicationTable.C_RECEIVED_AMOUNT, value); }
        }
		
        public DateTime ReceivedDate
        {
            get { return Convert.ToDateTime(GetData(FinBillingReceivedApplicationTable.C_RECEIVED_DATE)); }
            set { SetData(FinBillingReceivedApplicationTable.C_RECEIVED_DATE, value); }
        }
		
        public string ReceivedAmountPerson
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_RECEIVED_AMOUNT_PERSON)); }
            set { SetData(FinBillingReceivedApplicationTable.C_RECEIVED_AMOUNT_PERSON, value); }
        }
		
        public string InvoiceNo
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_INVOICE_NO)); }
            set { SetData(FinBillingReceivedApplicationTable.C_INVOICE_NO, value); }
        }
		
        public string InvoiceSendingType
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_INVOICE_SENDING_TYPE)); }
            set { SetData(FinBillingReceivedApplicationTable.C_INVOICE_SENDING_TYPE, value); }
        }
		
        public string InvoiceSendingPostNo
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_INVOICE_SENDING_POST_NO)); }
            set { SetData(FinBillingReceivedApplicationTable.C_INVOICE_SENDING_POST_NO, value); }
        }
		
        public string InvoiceSendingPerson
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_INVOICE_SENDING_PERSON)); }
            set { SetData(FinBillingReceivedApplicationTable.C_INVOICE_SENDING_PERSON, value); }
        }
		
        public string InvoiceReceivedPerson
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_INVOICE_RECEIVED_PERSON)); }
            set { SetData(FinBillingReceivedApplicationTable.C_INVOICE_RECEIVED_PERSON, value); }
        }
		
        public string FeedbackRemark
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_FEEDBACK_REMARK)); }
            set { SetData(FinBillingReceivedApplicationTable.C_FEEDBACK_REMARK, value); }
        }
		
        public string Status
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_STATUS)); }
            set { SetData(FinBillingReceivedApplicationTable.C_STATUS, value); }
        }
		
        public string Remark
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_REMARK)); }
            set { SetData(FinBillingReceivedApplicationTable.C_REMARK, value); }
        }
		
        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(FinBillingReceivedApplicationTable.C_CREATED_DATE)); }
            set { SetData(FinBillingReceivedApplicationTable.C_CREATED_DATE, value); }
        }
		
        public string CreatedBy
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_CREATED_BY)); }
            set { SetData(FinBillingReceivedApplicationTable.C_CREATED_BY, value); }
        }
		
        public DateTime LastModifiedDate
        {
            get { return Convert.ToDateTime(GetData(FinBillingReceivedApplicationTable.C_LAST_MODIFIED_DATE)); }
            set { SetData(FinBillingReceivedApplicationTable.C_LAST_MODIFIED_DATE, value); }
        }
		
        public string LastModifiedBy
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_LAST_MODIFIED_BY)); }
            set { SetData(FinBillingReceivedApplicationTable.C_LAST_MODIFIED_BY, value); }
        }
		
        public DateTime ApprovedDate
        {
            get { return Convert.ToDateTime(GetData(FinBillingReceivedApplicationTable.C_APPROVED_DATE)); }
            set { SetData(FinBillingReceivedApplicationTable.C_APPROVED_DATE, value); }
        }
		
        public string ApprovedBy
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_APPROVED_BY)); }
            set { SetData(FinBillingReceivedApplicationTable.C_APPROVED_BY, value); }
        }
		
        public string ApplicationCode
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_APPLICATION_CODE)); }
            set { SetData(FinBillingReceivedApplicationTable.C_APPLICATION_CODE, value); }
        }
		
        public string ApprovedRemark
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_APPROVED_REMARK)); }
            set { SetData(FinBillingReceivedApplicationTable.C_APPROVED_REMARK, value); }
        }
		
        public string OrderType
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_ORDER_TYPE)); }
            set { SetData(FinBillingReceivedApplicationTable.C_ORDER_TYPE, value); }
        }
		
        public string BillingType
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_BILLING_TYPE)); }
            set { SetData(FinBillingReceivedApplicationTable.C_BILLING_TYPE, value); }
        }
		
        public DateTime BillingDate
        {
            get { return Convert.ToDateTime(GetData(FinBillingReceivedApplicationTable.C_BILLING_DATE)); }
            set { SetData(FinBillingReceivedApplicationTable.C_BILLING_DATE, value); }
        }
		
        public string BillingCompany
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_BILLING_COMPANY)); }
            set { SetData(FinBillingReceivedApplicationTable.C_BILLING_COMPANY, value); }
        }
		
        public string PayType
        {
            get { return Convert.ToString(GetData(FinBillingReceivedApplicationTable.C_PAY_TYPE)); }
            set { SetData(FinBillingReceivedApplicationTable.C_PAY_TYPE, value); }
        }
		
        public decimal AppAmount
        {
            get { return Convert.ToDecimal(GetData(FinBillingReceivedApplicationTable.C_APP_AMOUNT)); }
            set { SetData(FinBillingReceivedApplicationTable.C_APP_AMOUNT, value); }
        }
		
        public decimal ApprovedAmount
        {
            get { return Convert.ToDecimal(GetData(FinBillingReceivedApplicationTable.C_APPROVED_AMOUNT)); }
            set { SetData(FinBillingReceivedApplicationTable.C_APPROVED_AMOUNT, value); }
        }
		
		#endregion
	}
	
	
}	

